package com.liliudong.pinkyponk.biz.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liliudong.pinkyponk.biz.sys.entity.SysOrg;
import com.liliudong.pinkyponk.common.db.annotation.IgnoreDataScope;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * SysOrgMapper
 *
 * @author liliudong
 * @date 2022-06-01 16:05
 **/
public interface SysOrgMapper extends BaseMapper<SysOrg> {

    /**
     * selectOrgNosByRoleIds
     *
     * @param roleIds
     * @return
     */
    @IgnoreDataScope
    List<String> selectOrgNosByRoleIds(@Param("roleIds") List<Integer> roleIds);

    /**
     * selectOrgNosByUserId
     *
     * @param userId
     * @return
     */
    @IgnoreDataScope
    List<String> selectOrgNosByUserId(@Param("userId") Long userId);

    /**
     * selectAllOrgNos
     *
     * @return
     */
    @IgnoreDataScope
    List<String> selectAllOrgNos();
}
